3.162 \(\int (c i+d i x) (A+B \log (e (\frac {a+b x}{c+d x})^n))^2 \, dx\)

Optimal. Leaf size=220 \[ \frac {B i n (b c-a d)^2 \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^2 d}-\frac {B i n (a+b x) (b c-a d) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^2}+\frac {i (c+d x)^2 \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2}{2 d}-\frac {B^2 i n^2 (b c-a d)^2 \text {Li}_2\left (\frac {b (c+d x)}{d (a+b x)}\right )}{b^2 d}+\frac {B^2 i n^2 (b c-a d)^2 \log (c+d x)}{b^2 d} \]

[Out]

-B*(-a*d+b*c)*i*n*(b*x+a)*(A+B*ln(e*((b*x+a)/(d*x+c))^n))/b^2+1/2*i*(d*x+c)^2*(A+B*ln(e*((b*x+a)/(d*x+c))^n))^
2/d+B^2*(-a*d+b*c)^2*i*n^2*ln(d*x+c)/b^2/d+B*(-a*d+b*c)^2*i*n*(A+B*ln(e*((b*x+a)/(d*x+c))^n))*ln(1-b*(d*x+c)/d
/(b*x+a))/b^2/d-B^2*(-a*d+b*c)^2*i*n^2*polylog(2,b*(d*x+c)/d/(b*x+a))/b^2/d

________________________________________________________________________________________

Rubi [A]  time = 0.48, antiderivative size = 307, normalized size of antiderivative = 1.40, number of steps used = 15, number of rules used = 12, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {2525, 12, 2528, 2486, 31, 2524, 2418, 2390, 2301, 2394, 2393, 2391} \[ -\frac {B^2 i n^2 (b c-a d)^2 \text {PolyLog}\left (2,-\frac {d (a+b x)}{b c-a d}\right )}{b^2 d}-\frac {B i n (b c-a d)^2 \log (a+b x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^2 d}+\frac {i (c+d x)^2 \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2}{2 d}-\frac {A B i n x (b c-a d)}{b}-\frac {B^2 i n (a+b x) (b c-a d) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^2}+\frac {B^2 i n^2 (b c-a d)^2 \log ^2(a+b x)}{2 b^2 d}+\frac {B^2 i n^2 (b c-a d)^2 \log (c+d x)}{b^2 d}-\frac {B^2 i n^2 (b c-a d)^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{b^2 d} \]

Antiderivative was successfully verified.

[In]

Int[(c*i + d*i*x)*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2,x]

[Out]

-((A*B*(b*c - a*d)*i*n*x)/b) + (B^2*(b*c - a*d)^2*i*n^2*Log[a + b*x]^2)/(2*b^2*d) - (B^2*(b*c - a*d)*i*n*(a +
b*x)*Log[e*((a + b*x)/(c + d*x))^n])/b^2 - (B*(b*c - a*d)^2*i*n*Log[a + b*x]*(A + B*Log[e*((a + b*x)/(c + d*x)
)^n]))/(b^2*d) + (i*(c + d*x)^2*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2)/(2*d) + (B^2*(b*c - a*d)^2*i*n^2*Log
[c + d*x])/(b^2*d) - (B^2*(b*c - a*d)^2*i*n^2*Log[a + b*x]*Log[(b*(c + d*x))/(b*c - a*d)])/(b^2*d) - (B^2*(b*c
 - a*d)^2*i*n^2*PolyLog[2, -((d*(a + b*x))/(b*c - a*d))])/(b^2*d)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 2390

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[((f*x)/d)^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2393

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + (c*e*x)/g])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2418

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{u = ExpandIntegrand[
(a + b*Log[c*(d + e*x)^n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n}, x] && RationalFunct
ionQ[RFx, x] && IntegerQ[p]

Rule 2486

Int[Log[(e_.)*((f_.)*((a_.) + (b_.)*(x_))^(p_.)*((c_.) + (d_.)*(x_))^(q_.))^(r_.)]^(s_.), x_Symbol] :> Simp[((
a + b*x)*Log[e*(f*(a + b*x)^p*(c + d*x)^q)^r]^s)/b, x] + Dist[(q*r*s*(b*c - a*d))/b, Int[Log[e*(f*(a + b*x)^p*
(c + d*x)^q)^r]^(s - 1)/(c + d*x), x], x] /; FreeQ[{a, b, c, d, e, f, p, q, r, s}, x] && NeQ[b*c - a*d, 0] &&
EqQ[p + q, 0] && IGtQ[s, 0]

Rule 2524

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[(Log[d + e*x]*(a + b
*Log[c*RFx^p])^n)/e, x] - Dist[(b*n*p)/e, Int[(Log[d + e*x]*(a + b*Log[c*RFx^p])^(n - 1)*D[RFx, x])/RFx, x], x
] /; FreeQ[{a, b, c, d, e, p}, x] && RationalFunctionQ[RFx, x] && IGtQ[n, 0]

Rule 2525

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)*((d_.) + (e_.)*(x_))^(m_.), x_Symbol] :> Simp[((d + e*x)^(m
+ 1)*(a + b*Log[c*RFx^p])^n)/(e*(m + 1)), x] - Dist[(b*n*p)/(e*(m + 1)), Int[SimplifyIntegrand[((d + e*x)^(m +
 1)*(a + b*Log[c*RFx^p])^(n - 1)*D[RFx, x])/RFx, x], x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && RationalFunc
tionQ[RFx, x] && IGtQ[n, 0] && (EqQ[n, 1] || IntegerQ[m]) && NeQ[m, -1]

Rule 2528

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)*(RGx_), x_Symbol] :> With[{u = ExpandIntegrand[(a + b*Log[c*
RFx^p])^n, RGx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, p}, x] && RationalFunctionQ[RFx, x] && RationalF
unctionQ[RGx, x] && IGtQ[n, 0]

Rubi steps

\begin {align*} \int (162 c+162 d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2 \, dx &=\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}-\frac {(B n) \int \frac {26244 (b c-a d) (c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{a+b x} \, dx}{162 d}\\ &=\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}-\frac {(162 B (b c-a d) n) \int \frac {(c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{a+b x} \, dx}{d}\\ &=\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}-\frac {(162 B (b c-a d) n) \int \left (\frac {d \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b}+\frac {(b c-a d) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b (a+b x)}\right ) \, dx}{d}\\ &=\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}-\frac {(162 B (b c-a d) n) \int \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \, dx}{b}-\frac {\left (162 B (b c-a d)^2 n\right ) \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{a+b x} \, dx}{b d}\\ &=-\frac {162 A B (b c-a d) n x}{b}-\frac {162 B (b c-a d)^2 n \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^2 d}+\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}-\frac {\left (162 B^2 (b c-a d) n\right ) \int \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right ) \, dx}{b}+\frac {\left (162 B^2 (b c-a d)^2 n^2\right ) \int \frac {(c+d x) \left (-\frac {d (a+b x)}{(c+d x)^2}+\frac {b}{c+d x}\right ) \log (a+b x)}{a+b x} \, dx}{b^2 d}\\ &=-\frac {162 A B (b c-a d) n x}{b}-\frac {162 B^2 (b c-a d) n (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^2}-\frac {162 B (b c-a d)^2 n \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^2 d}+\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}+\frac {\left (162 B^2 (b c-a d)^2 n^2\right ) \int \frac {1}{c+d x} \, dx}{b^2}+\frac {\left (162 B^2 (b c-a d)^2 n^2\right ) \int \left (\frac {b \log (a+b x)}{a+b x}-\frac {d \log (a+b x)}{c+d x}\right ) \, dx}{b^2 d}\\ &=-\frac {162 A B (b c-a d) n x}{b}-\frac {162 B^2 (b c-a d) n (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^2}-\frac {162 B (b c-a d)^2 n \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^2 d}+\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}+\frac {162 B^2 (b c-a d)^2 n^2 \log (c+d x)}{b^2 d}-\frac {\left (162 B^2 (b c-a d)^2 n^2\right ) \int \frac {\log (a+b x)}{c+d x} \, dx}{b^2}+\frac {\left (162 B^2 (b c-a d)^2 n^2\right ) \int \frac {\log (a+b x)}{a+b x} \, dx}{b d}\\ &=-\frac {162 A B (b c-a d) n x}{b}-\frac {162 B^2 (b c-a d) n (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^2}-\frac {162 B (b c-a d)^2 n \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^2 d}+\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}+\frac {162 B^2 (b c-a d)^2 n^2 \log (c+d x)}{b^2 d}-\frac {162 B^2 (b c-a d)^2 n^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{b^2 d}+\frac {\left (162 B^2 (b c-a d)^2 n^2\right ) \operatorname {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,a+b x\right )}{b^2 d}+\frac {\left (162 B^2 (b c-a d)^2 n^2\right ) \int \frac {\log \left (\frac {b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{b d}\\ &=-\frac {162 A B (b c-a d) n x}{b}+\frac {81 B^2 (b c-a d)^2 n^2 \log ^2(a+b x)}{b^2 d}-\frac {162 B^2 (b c-a d) n (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^2}-\frac {162 B (b c-a d)^2 n \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^2 d}+\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}+\frac {162 B^2 (b c-a d)^2 n^2 \log (c+d x)}{b^2 d}-\frac {162 B^2 (b c-a d)^2 n^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{b^2 d}+\frac {\left (162 B^2 (b c-a d)^2 n^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{b^2 d}\\ &=-\frac {162 A B (b c-a d) n x}{b}+\frac {81 B^2 (b c-a d)^2 n^2 \log ^2(a+b x)}{b^2 d}-\frac {162 B^2 (b c-a d) n (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{b^2}-\frac {162 B (b c-a d)^2 n \log (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^2 d}+\frac {81 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{d}+\frac {162 B^2 (b c-a d)^2 n^2 \log (c+d x)}{b^2 d}-\frac {162 B^2 (b c-a d)^2 n^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{b^2 d}-\frac {162 B^2 (b c-a d)^2 n^2 \text {Li}_2\left (-\frac {d (a+b x)}{b c-a d}\right )}{b^2 d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.19, size = 216, normalized size = 0.98 \[ \frac {i \left (\frac {B n (b c-a d) \left (-2 (b c-a d) \log (a+b x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+B n \log \left (\frac {b (c+d x)}{b c-a d}\right )+A\right )-2 \left (B d (a+b x) \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+B n (a d-b c) \log (c+d x)+A b d x\right )+2 B n (a d-b c) \text {Li}_2\left (\frac {d (a+b x)}{a d-b c}\right )+B n (b c-a d) \log ^2(a+b x)\right )}{b^2}+(c+d x)^2 \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2\right )}{2 d} \]

Antiderivative was successfully verified.

[In]

Integrate[(c*i + d*i*x)*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2,x]

[Out]

(i*((c + d*x)^2*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2 + (B*(b*c - a*d)*n*(B*(b*c - a*d)*n*Log[a + b*x]^2 -
2*(A*b*d*x + B*d*(a + b*x)*Log[e*((a + b*x)/(c + d*x))^n] + B*(-(b*c) + a*d)*n*Log[c + d*x]) - 2*(b*c - a*d)*L
og[a + b*x]*(A + B*Log[e*((a + b*x)/(c + d*x))^n] + B*n*Log[(b*(c + d*x))/(b*c - a*d)]) + 2*B*(-(b*c) + a*d)*n
*PolyLog[2, (d*(a + b*x))/(-(b*c) + a*d)]))/b^2))/(2*d)

________________________________________________________________________________________

fricas [F]  time = 0.74, size = 0, normalized size = 0.00 \[ {\rm integral}\left (A^{2} d i x + A^{2} c i + {\left (B^{2} d i x + B^{2} c i\right )} \log \left (e \left (\frac {b x + a}{d x + c}\right )^{n}\right )^{2} + 2 \, {\left (A B d i x + A B c i\right )} \log \left (e \left (\frac {b x + a}{d x + c}\right )^{n}\right ), x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*i*x+c*i)*(A+B*log(e*((b*x+a)/(d*x+c))^n))^2,x, algorithm="fricas")

[Out]

integral(A^2*d*i*x + A^2*c*i + (B^2*d*i*x + B^2*c*i)*log(e*((b*x + a)/(d*x + c))^n)^2 + 2*(A*B*d*i*x + A*B*c*i
)*log(e*((b*x + a)/(d*x + c))^n), x)

________________________________________________________________________________________

giac [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*i*x+c*i)*(A+B*log(e*((b*x+a)/(d*x+c))^n))^2,x, algorithm="giac")

[Out]

Timed out

________________________________________________________________________________________

maple [F]  time = 0.11, size = 0, normalized size = 0.00 \[ \int \left (d i x +c i \right ) \left (B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )+A \right )^{2}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*i*x+c*i)*(B*ln(e*((b*x+a)/(d*x+c))^n)+A)^2,x)

[Out]

int((d*i*x+c*i)*(B*ln(e*((b*x+a)/(d*x+c))^n)+A)^2,x)

________________________________________________________________________________________

maxima [B]  time = 6.65, size = 825, normalized size = 3.75 \[ A B d i x^{2} \log \left (e {\left (\frac {b x}{d x + c} + \frac {a}{d x + c}\right )}^{n}\right ) + \frac {1}{2} \, A^{2} d i x^{2} - A B d i n {\left (\frac {a^{2} \log \left (b x + a\right )}{b^{2}} - \frac {c^{2} \log \left (d x + c\right )}{d^{2}} + \frac {{\left (b c - a d\right )} x}{b d}\right )} + 2 \, A B c i n {\left (\frac {a \log \left (b x + a\right )}{b} - \frac {c \log \left (d x + c\right )}{d}\right )} + 2 \, A B c i x \log \left (e {\left (\frac {b x}{d x + c} + \frac {a}{d x + c}\right )}^{n}\right ) + A^{2} c i x - \frac {{\left (a c d i n^{2} - {\left (i n^{2} - i n \log \relax (e)\right )} b c^{2}\right )} B^{2} \log \left (d x + c\right )}{b d} - \frac {{\left (b^{2} c^{2} i n^{2} - 2 \, a b c d i n^{2} + a^{2} d^{2} i n^{2}\right )} {\left (\log \left (b x + a\right ) \log \left (\frac {b d x + a d}{b c - a d} + 1\right ) + {\rm Li}_2\left (-\frac {b d x + a d}{b c - a d}\right )\right )} B^{2}}{b^{2} d} + \frac {2 \, B^{2} b^{2} c^{2} i n^{2} \log \left (b x + a\right ) \log \left (d x + c\right ) - B^{2} b^{2} c^{2} i n^{2} \log \left (d x + c\right )^{2} + B^{2} b^{2} d^{2} i x^{2} \log \relax (e)^{2} - {\left (2 \, a b c d i n^{2} - a^{2} d^{2} i n^{2}\right )} B^{2} \log \left (b x + a\right )^{2} + 2 \, {\left (a b d^{2} i n \log \relax (e) - {\left (i n \log \relax (e) - i \log \relax (e)^{2}\right )} b^{2} c d\right )} B^{2} x - 2 \, {\left ({\left (i n^{2} - 2 \, i n \log \relax (e)\right )} a b c d - {\left (i n^{2} - i n \log \relax (e)\right )} a^{2} d^{2}\right )} B^{2} \log \left (b x + a\right ) + {\left (B^{2} b^{2} d^{2} i x^{2} + 2 \, B^{2} b^{2} c d i x\right )} \log \left ({\left (b x + a\right )}^{n}\right )^{2} + {\left (B^{2} b^{2} d^{2} i x^{2} + 2 \, B^{2} b^{2} c d i x\right )} \log \left ({\left (d x + c\right )}^{n}\right )^{2} + 2 \, {\left (B^{2} b^{2} d^{2} i x^{2} \log \relax (e) - B^{2} b^{2} c^{2} i n \log \left (d x + c\right ) + {\left (a b d^{2} i n - {\left (i n - 2 \, i \log \relax (e)\right )} b^{2} c d\right )} B^{2} x + {\left (2 \, a b c d i n - a^{2} d^{2} i n\right )} B^{2} \log \left (b x + a\right )\right )} \log \left ({\left (b x + a\right )}^{n}\right ) - 2 \, {\left (B^{2} b^{2} d^{2} i x^{2} \log \relax (e) - B^{2} b^{2} c^{2} i n \log \left (d x + c\right ) + {\left (a b d^{2} i n - {\left (i n - 2 \, i \log \relax (e)\right )} b^{2} c d\right )} B^{2} x + {\left (2 \, a b c d i n - a^{2} d^{2} i n\right )} B^{2} \log \left (b x + a\right ) + {\left (B^{2} b^{2} d^{2} i x^{2} + 2 \, B^{2} b^{2} c d i x\right )} \log \left ({\left (b x + a\right )}^{n}\right )\right )} \log \left ({\left (d x + c\right )}^{n}\right )}{2 \, b^{2} d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*i*x+c*i)*(A+B*log(e*((b*x+a)/(d*x+c))^n))^2,x, algorithm="maxima")

[Out]

A*B*d*i*x^2*log(e*(b*x/(d*x + c) + a/(d*x + c))^n) + 1/2*A^2*d*i*x^2 - A*B*d*i*n*(a^2*log(b*x + a)/b^2 - c^2*l
og(d*x + c)/d^2 + (b*c - a*d)*x/(b*d)) + 2*A*B*c*i*n*(a*log(b*x + a)/b - c*log(d*x + c)/d) + 2*A*B*c*i*x*log(e
*(b*x/(d*x + c) + a/(d*x + c))^n) + A^2*c*i*x - (a*c*d*i*n^2 - (i*n^2 - i*n*log(e))*b*c^2)*B^2*log(d*x + c)/(b
*d) - (b^2*c^2*i*n^2 - 2*a*b*c*d*i*n^2 + a^2*d^2*i*n^2)*(log(b*x + a)*log((b*d*x + a*d)/(b*c - a*d) + 1) + dil
og(-(b*d*x + a*d)/(b*c - a*d)))*B^2/(b^2*d) + 1/2*(2*B^2*b^2*c^2*i*n^2*log(b*x + a)*log(d*x + c) - B^2*b^2*c^2
*i*n^2*log(d*x + c)^2 + B^2*b^2*d^2*i*x^2*log(e)^2 - (2*a*b*c*d*i*n^2 - a^2*d^2*i*n^2)*B^2*log(b*x + a)^2 + 2*
(a*b*d^2*i*n*log(e) - (i*n*log(e) - i*log(e)^2)*b^2*c*d)*B^2*x - 2*((i*n^2 - 2*i*n*log(e))*a*b*c*d - (i*n^2 -
i*n*log(e))*a^2*d^2)*B^2*log(b*x + a) + (B^2*b^2*d^2*i*x^2 + 2*B^2*b^2*c*d*i*x)*log((b*x + a)^n)^2 + (B^2*b^2*
d^2*i*x^2 + 2*B^2*b^2*c*d*i*x)*log((d*x + c)^n)^2 + 2*(B^2*b^2*d^2*i*x^2*log(e) - B^2*b^2*c^2*i*n*log(d*x + c)
 + (a*b*d^2*i*n - (i*n - 2*i*log(e))*b^2*c*d)*B^2*x + (2*a*b*c*d*i*n - a^2*d^2*i*n)*B^2*log(b*x + a))*log((b*x
 + a)^n) - 2*(B^2*b^2*d^2*i*x^2*log(e) - B^2*b^2*c^2*i*n*log(d*x + c) + (a*b*d^2*i*n - (i*n - 2*i*log(e))*b^2*
c*d)*B^2*x + (2*a*b*c*d*i*n - a^2*d^2*i*n)*B^2*log(b*x + a) + (B^2*b^2*d^2*i*x^2 + 2*B^2*b^2*c*d*i*x)*log((b*x
 + a)^n))*log((d*x + c)^n))/(b^2*d)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \[ \int \left (c\,i+d\,i\,x\right )\,{\left (A+B\,\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )\right )}^2 \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*i + d*i*x)*(A + B*log(e*((a + b*x)/(c + d*x))^n))^2,x)

[Out]

int((c*i + d*i*x)*(A + B*log(e*((a + b*x)/(c + d*x))^n))^2, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ i \left (\int A^{2} c\, dx + \int A^{2} d x\, dx + \int B^{2} c \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}^{2}\, dx + \int 2 A B c \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}\, dx + \int B^{2} d x \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}^{2}\, dx + \int 2 A B d x \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}\, dx\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*i*x+c*i)*(A+B*ln(e*((b*x+a)/(d*x+c))**n))**2,x)

[Out]

i*(Integral(A**2*c, x) + Integral(A**2*d*x, x) + Integral(B**2*c*log(e*(a/(c + d*x) + b*x/(c + d*x))**n)**2, x
) + Integral(2*A*B*c*log(e*(a/(c + d*x) + b*x/(c + d*x))**n), x) + Integral(B**2*d*x*log(e*(a/(c + d*x) + b*x/
(c + d*x))**n)**2, x) + Integral(2*A*B*d*x*log(e*(a/(c + d*x) + b*x/(c + d*x))**n), x))

________________________________________________________________________________________